package com.zone.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zone.service.mapper.SuppliesFormMapper;
import com.zone.service.domain.SuppliesForm;
import com.zone.service.service.ISuppliesFormService;

/**
 * 物品领用单Service业务层处理
 * 
 * @author liuyang
 * @date 2025-11-19
 */
@Service
public class SuppliesFormServiceImpl implements ISuppliesFormService 
{
    @Autowired
    private SuppliesFormMapper suppliesFormMapper;

    /**
     * 查询物品领用单
     * 
     * @param id 物品领用单主键
     * @return 物品领用单
     */
    @Override
    public SuppliesForm selectSuppliesFormById(Long id)
    {
        return suppliesFormMapper.selectSuppliesFormById(id);
    }

    /**
     * 查询物品领用单列表
     * 
     * @param suppliesForm 物品领用单
     * @return 物品领用单
     */
    @Override
    public List<SuppliesForm> selectSuppliesFormList(SuppliesForm suppliesForm)
    {
        return suppliesFormMapper.selectSuppliesFormList(suppliesForm);
    }

    /**
     * 新增物品领用单
     * 
     * @param suppliesForm 物品领用单
     * @return 结果
     */
    @Override
    public int insertSuppliesForm(SuppliesForm suppliesForm)
    {
        return suppliesFormMapper.insertSuppliesForm(suppliesForm);
    }

    /**
     * 修改物品领用单
     * 
     * @param suppliesForm 物品领用单
     * @return 结果
     */
    @Override
    public int updateSuppliesForm(SuppliesForm suppliesForm)
    {
        return suppliesFormMapper.updateSuppliesForm(suppliesForm);
    }

    /**
     * 批量删除物品领用单
     * 
     * @param ids 需要删除的物品领用单主键
     * @return 结果
     */
    @Override
    public int deleteSuppliesFormByIds(Long[] ids)
    {
        return suppliesFormMapper.deleteSuppliesFormByIds(ids);
    }

    /**
     * 删除物品领用单信息
     * 
     * @param id 物品领用单主键
     * @return 结果
     */
    @Override
    public int deleteSuppliesFormById(Long id)
    {
        return suppliesFormMapper.deleteSuppliesFormById(id);
    }
}
